/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.myorg.totoBD.gui.swing.components.dialog;


import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author user
 */
public class DlgConDbCreate extends DlgConDbAbs implements ActionListener{
    public DlgConDbCreate(Frame parent, boolean modal) throws ClassNotFoundException, Exception {
        super("Create a database", "Enter the name of the database to create", parent, modal);
    }

    protected boolean _doJob() throws Exception{
        String DataBaseName = super.txfDataBaseName.getText();
        this._dbConnection_.executeUpdate("CREATE DATABASE "+ DataBaseName);
        return true;
    }



    @Override
    public void actionPerformed(ActionEvent e){
       super.actionPerformed(e);
    }


}
